@if($portfolios && count($portfolios) > 0) 
<div id="content-home" class="content group">
	<div class="hentry group">
		<div class="section portfolio">
			<h3 class="title">{{-- trans('ru.latest_projects') --}}Latest projects</h3>
			@foreach($portfolios as $k=>$item)
				@if($k==0)
					<div class="hentry work group portfolio-sticky portfolio-full-description">
						<div class="work-thumbnail">
							<a class="thumb"><img src="{{ asset(config('app.theme')) }}/images/projects/{{ $item->img->max }}" alt="{{ $item->title }}" title="{{ $item->title }}" /></a>
							<div class="work-overlay">
								<h3><a href="{{route('portfolios.show',['alias' => $item->alias])}}">{{ $item->title }}</a></h3>
								<p class="work-overlay-categories"><img src="{{ asset(config('app.theme')) }}/images/categories.png" alt="Categories" /> in: <a href="{{ route('portfolios.index') }}/filter/{{ $item->filter->alias }}">{{ $item->filter->title }}</a></p>
							</div>
						</div>
							<div class="work-description">
								<h2><a href="{{route('portfolios.show',['alias' => $item->alias])}}">{{ $item->title }}</a></h2>
								<p class="work-categories">in: <a href="{{ route('portfolios.index') }}/filter/{{ $item->filter->alias }}">{{ $item->filter->title }}</a></p>
								<p>{!! str_limit($item->text,200) !!}</p>
								<a href="{{route('portfolios.show',['alias' => $item->alias])}}" class="read-more">|| Read more</a>
							</div>
						</div>
					<div class="clear"></div>
					@continue
				@endif
				@if($k==1)
				<div class="portfolio-projects">
				@endif
					<div class="related_project {{ ($k==4) ? ' related_project_last' : '' }}">
						<div class="overlay_a related_img">
							<div class="overlay_wrapper">
								<img src="{{ asset(config('app.theme')) }}/images/projects/{{ $item->img->mini}}" alt="{{ $item->title }}" title="{{ $item->title }}" />						
								<div class="overlay">
									<a class="overlay_img" href="{{config('app.theme')}}/images/projects/{{ $item->img->path }}" rel="lightbox" title="{{ $item->title }}"></a>
									<a class="overlay_project" href="{{route('portfolios.show',['alias' => $item->alias])}}"></a>
									<span class="overlay_title">{{ $item->title }}</span>
								</div>
							</div>
						</div>
						<h4><a href="{{route('portfolios.show',['alias' => $item->alias])}}">{{ $item->title }}</a></h4>
						<p>{!! str_limit($item->text,200) !!}</p>
					</div>
								
			@endforeach
		</div>
	</div>
	<div class="clear"></div>
</div>
<!-- START COMMENTS -->
<div id="comments">
</div>
<!-- END COMMENTS -->
</div>
@else
	<p>THere is no portfolios at the moment</p>
@endif

